package simulator;

public class FileObject {

	String name; //the file name
	int data; // assume  data is just an integer in this implementation, to make the translator easier
	
	/**
	 * A file object is just a data structure containing a file name and some data.
	 * Currently data consists of just one integer
	 * @param name
	 * @param data
	 */
	public FileObject(String name, int data)
	{
		this.name = name;
		this.data = data;
	}
	
	/**
	 *Get name of the file
	 */
	public String getName()
	{
		return name;
	}
	
	/**
	 * Get the file data -- currently it's just an integer
	 */
	public int getData()
	{
		return data;
	}
	
	/**
	 * Set the file data -- currently it can just be an integer
	 */
	public void setData(int newData)
	{
		this.data = newData;
	}
	
	public String toString()
	{
		return ("File Name: " + this.name
				+ "\tFile Data: " + this.data);
	}
}
